import Vue from 'vue'
import VueRouter from 'vue-router'
import Films from '../views/Films.vue'
import Cinemas from "../views/Cinemas.vue"
import Infos from "../views/Infos.vue"
import Center from "../views/Center.vue"

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Films',
    component: Films
  },
  {
    path: '/films',
    name: 'Films',
    component: Films
  },
  {
    path: '/cinemas',
    name: 'Cinemas',
    component: Cinemas
  },
  {
    path: '/infos',
    name: 'Infos',
    component: Infos
  },
  {
    path: '/center',
    name: 'Center',
    component: Center
  },
  
]

const router = new VueRouter({
  routes
})

export default router
